Check that window_private is not NULL before using it. (#444351, David
authorMatthias Clasen <mclasen@redhat.com>
Tue, 5 Jun 2007 15:53:41 +0000 (15:53 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 5 Jun 2007 15:53:41 +0000 (15:53 +0000)
2007-06-05  Matthias Clasen <mclasen@redhat.com>

        * gdk/x11/gdkevents-x11.c (gdk_event_translate): Check that
        window_private is not NULL before using it.  (#444351, David Ronis)

svn path=/trunk/; revision=18043

ChangeLog
gdk/x11/gdkevents-x11.c

index 1cbc704820468a7c91480b3a435c58390dbdee11..8e9c453d463aba865e76f106b7bc1c0db19fb483 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-05  Matthias Clasen <mclasen@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_event_translate): Check that
+       window_private is not NULL before using it.  (#444351, David Ronis)
+
 2007-06-05  Jakub Steiner <jimmac@ximian.com>
 
        * gtk/stock-icons/{16,24}/gtk-find*: drop the paper sheet.
index b9560d46ed0053b95195519cdbb9a3e8ef944d23..5c95de7dfa0973e65f50b58b7c74901d38ff4c12 100644 (file)
@@ -2102,7 +2102,7 @@ gdk_event_translate (GdkDisplay *display,
       else
 #endif
 #if defined(HAVE_XCOMPOSITE) && defined (HAVE_XDAMAGE) && defined (HAVE_XFIXES)
-      if (display_x11->have_xdamage && window_private->composited &&
+      if (display_x11->have_xdamage && window_private && window_private->composited &&
          xevent->type == display_x11->xdamage_event_base + XDamageNotify)
        {
          XDamageNotifyEvent *damage_event = (XDamageNotifyEvent *) xevent;